# encoding: utf-8
from google.appengine.ext import db

class Content(db.Model):
	title = db.StringProperty()
	content = db.TextProperty()
	time_date = db.DateTimeProperty(auto_now_add=True,auto_now=True)
	type = db.StringProperty(required=True, choices=set(["article","default"]), default="article")

class Image(db.Model):
	content = db.BlobProperty()

class Setting(db.Model):
	name = db.StringProperty()
	value = db.StringProperty()
